#ifndef __UART_TEST_H__
#define __UART_TEST_H__
#define FACOTRY_UART_TEST_DATA "factory_uart_test_data"
#define FACTORY_CHECK_DATA '1'
#define FACTORY_UART_LEN 64
#define USER_COM_485_NAME "uart1"
#define FAC_RS485_CONFIG                                          \
    {                                                         \
        BAUD_RATE_9600,                 /* 9600 bits/s */     \
            DATA_BITS_8,                /* 8 databits */      \
            STOP_BITS_1,                /* 1 stopbit */       \
            PARITY_NONE,                /* No parity  */      \
            BIT_ORDER_LSB,              /* LSB first sent */  \
            NRZ_NORMAL,                 /* Normal mode */     \
            RT_SERIAL_RB_BUFSZ,         /* Buffer size */     \
            RT_SERIAL_FLOWCONTROL_NONE, /* Off flowcontrol */ \
            0                                                 \
    }

#define USER_COM_BT_NAME "uart7"
#define FAC_BT_CONFIG                                             \
    {                                                         \
        BAUD_RATE_115200,               /* 115200 bits/s */   \
            DATA_BITS_8,                /* 8 databits */      \
            STOP_BITS_1,                /* 1 stopbit */       \
            PARITY_NONE,                /* No parity  */      \
            BIT_ORDER_LSB,              /* LSB first sent */  \
            NRZ_NORMAL,                 /* Normal mode */     \
            RT_SERIAL_RB_BUFSZ,         /* Buffer size */     \
            RT_SERIAL_FLOWCONTROL_NONE, /* Off flowcontrol */ \
            0                                                 \
    }
int fac_485_uart_test(void);
int fac_ble_uart_test(void);
int fac_bt_mac_addr_get(void);
#endif
